home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 424_02 / ED-157 / cmd_enum.h < prev    next >
Text File  |  1993-09-10  |  1KB  |  92 lines

  1. /* Included by: COMMAND RESTORE_PARAM SET_PARAM SHOW_PARAM STORE_PARAM */
  2. /* NOTE: changes to this file must have corresponding changes in cmd_def.h */
  3. enum commands
  4. {
  5. COM_EXIT,
  6. COM_QUIT,
  7. COM_HELP,
  8. COM_SET,
  9. COM_SHOW,
  10. COM_STORE,
  11. COM_RESTORE,
  12. COM_INCLUDE,
  13. COM_WRITE,
  14. COM_CALCULATE,
  15. COM_DATE,
  16. COM_TIME,
  17. COM_ABORT,
  18. COM_GREP,
  19. COM_BYTE,
  20. COM_FILE,
  21. COM_TRIM,
  22. COM_CD,
  23. COM_PWD,
  24. COM_BIGGER,
  25. COM_SMALLER,
  26. COM_LOAD,
  27. COM_UNLOAD,
  28. COM_SORT,
  29. COM_BOOKMARK,
  30. COM_DELETE,
  31. COM_PERG,
  32. COM_SUBSTITUTE    /* add new commands following this one */
  33. };
  34. #define NUM_COMMANDS 28
  35.  
  36. enum params
  37. {
  38. PAR_SHELL,
  39. PAR_TABS,
  40. PAR_WRAP,
  41. PAR_SECTION,
  42. PAR_WORD,
  43. PAR_PAGE,
  44. PAR_PARAGRAPH,
  45. PAR_SEARCH,
  46. PAR_STABLE,
  47. PAR_CLOSE_PARENS,
  48. PAR_PARENS,
  49. PAR_DEFAULT,
  50. PAR_AUTO_TABS,
  51. PAR_CFRIENDLY,
  52. PAR_BOXCUT,
  53. PAR_AUTOWRAP,
  54. PAR_CASE,
  55. PAR_OVERSTRIKE,
  56. PAR_GREPMODE,
  57. PAR_WILDCARD,    /* add new SETable params following this one */
  58. PAR_POSITION,
  59. PAR_MODIFIED,
  60. PAR_VERSION,    /* add new non-SETable params following this one */
  61. PAR_KEYS    /* leave KEYS as the last one. */
  62. };
  63. #define NUM_PARAMS 24
  64. #define NUM_NOTSETTABLE 4    /* this means that the last 4 params cannot be SET */
  65.  
  66. enum smodes
  67. {
  68. SMODE_GENERAL,
  69. SMODE_EXACT,
  70. SMODE_BEGINNING,
  71. SMODE_END,
  72. SMODE_NO_WILDCARDS,
  73. SMODE_WILDCARDS,
  74. SMODE_NOT_TABLE_DRIVEN,
  75. SMODE_TABLE_DRIVEN,
  76. SMODE_REGEXP,
  77. SMODE_NOREGEXP,
  78. SMODE_CHAR,
  79. SMODE_WORD    /* add new search modes following this one */
  80. };
  81. #define NUM_SMODES 12
  82.  
  83. enum cases
  84. {
  85. CASE_UPPER,
  86. CASE_LOWER,
  87. CASE_OPPOSITE,
  88. CASE_CAPITALIZE
  89. };
  90. #define NUM_CASES 4
  91.  
  92.